package com.jdrx.ocp.beans.dto.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author: Huangxg
 * @Date: 2018/11/20 14:39
 */
@ApiModel(value = "部门DTO" , description = "用于部门管理的DTO")
public class CreateDeptDTO {

    @NotNull
    @ApiModelProperty(value = "上级部门",required = true)
    private Integer pid;

    @NotNull
    @Length(min = 1 , max = 20)
    @ApiModelProperty(value = "部门名称" , required = true)
    private String name;

    @Length(min = 0 , max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "机构类型{1:公司；2:部门}")
    private Integer type;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
